#include <cstdlib>
#include <stdlib.h>
#include <iostream>
#include <exception>
#include "frontEnd.hh"

int main(int ac, char** av) {
    if (ac != 4) {
	std::cerr << "usage : ./plazza float:multiply int:numberOfCooker int:cookSpeed" << std::endl;
	return EXIT_FAILURE;
    }
    Manager *m = new Manager(std::atof(av[1]), std::atoi(av[2]), std::atoi(av[3]));
    FrontEnd f(m);

    try {
	f.run();
    } catch (std::exception& c) {
	std::cerr << c.what() << std::endl;
	return EXIT_FAILURE;
    }
}
